package Blog.Managerv6;

import java.awt.event.ActionEvent;



public class SigninListener implements java.awt.event.ActionListener{
	
	private javax.swing.JTextField t1;
	private javax.swing.JTextField t2;
	private javax.swing.JFrame jf;
	private CreateBlogs cb=new CreateBlogs();
	
	public void actionPerformed(ActionEvent e){
		showSign();
	}

public void showSign(){
	javax.swing.JFrame jf=new javax.swing.JFrame("Sign in");
	jf.setSize(320, 700);

	java.awt.FlowLayout fl=new java.awt.FlowLayout(0,10,45);
	jf.setLayout(fl);

	javax.swing.JLabel l_num=new javax.swing.JLabel("account                    ");
	javax.swing.JLabel l_psw=new javax.swing.JLabel("password                 ");
	javax.swing.JLabel l_confirm=new javax.swing.JLabel("confirm password ");
	javax.swing.JLabel l_ID=new javax.swing.JLabel("ID Number                ");

	javax.swing.JTextField t_num=new javax.swing.JTextField(15);
	javax.swing.JTextField t_psw=new javax.swing.JTextField(15);
	javax.swing.JTextField t_confirm=new javax.swing.JTextField(15);
	javax.swing.JTextField t_ID=new javax.swing.JTextField(15);

	javax.swing.JButton b_sign=new javax.swing.JButton("Sign in");
	java.awt.event.ActionListener sign_in=new SignSuccess(t_num,t_psw,jf);
	b_sign.addActionListener(sign_in);
	
	

	jf.add(l_num);
	jf.add(t_num);
	jf.add(l_psw);
	jf.add(t_psw);
	jf.add(l_confirm);
	jf.add(t_confirm);

	jf.add(l_ID);
	jf.add(t_ID);

	jf.add(b_sign);

	jf.setResizable(false);
	jf.setVisible(true);
}

}


